#include <STC15F2K60S2.H>

void Delay_ms(unsigned int ms)
{
    unsigned int i,j;
    for(i = 0; i < ms; i++)
    {
        for(j = 853; j > 0; j--);
    }
}


void main()
{
    P2 = 0xA0;
    P0 = 0x00;
    
    P2 = 0x80;
    P0 = 0xFF;
    
    P2 = 0xA0;
    
    while(1)
    {
        P06 = 1; Delay_ms(500);
        P06 = 0; Delay_ms(500);
        
        P04 = 1; Delay_ms(500);
        P04 = 0; Delay_ms(500);
    }
}
